package com.example.controller;

import cn.hutool.core.bean.BeanUtil;
import com.example.entity.dto.UserDto;
import com.example.entity.pojo.User;
import com.example.result.Result;
import com.example.service.UserService;
import jakarta.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private UserService userService;

    //用户注册
    @PostMapping("/register")
    public Result register(UserDto userDto) {
        int res = userService.register(userDto);

        return null;
    }
}
